// import "angular-ui-grid";
// import "angular-ui-scroll";
// import { setAngularJSGlobal } from "@angular/upgrade/static";

// Set AngularJS global for upgrade module
// setAngularJSGlobal(angular);
/**
 * @function initApp
 * @description Initialize the application.
 * @returns {angular.IModule} The initialized application module.
 */
function initApp() {
  window.__AppName__ = "root";
  const App = angular.module(__AppName__, [
    "ngSanitize",
    "ngTouch",
    "ngAnimate",
    "ngAria",
    "ngMessages",
    "ngResource",
    "ui.bootstrap",
    // "modern module", just register here.
    "ui.router",
    "ui.grid",
    // ui.scroll
    "ui.scroll",
    "ui.scroll.grid",
  ]);
  return App;
}

export default initApp;
